file cleanup and attributing