correct for directory switch