add io_interface spec, fix bug where \n was in spec