cleanup base directory