cleaning up files before promotion