fits read/write and cleanup