clean up for random directory settings