added file cleanup routine