general file cleanup