directory and file cleanup