clean up base directory