brief comment...
switches directories correctly