cleanup IO work