directory switch for automated tasks