switch directory class