cleanup and file division