must switch directory