fixed file cleanup