prepare for IO output