exception management
changing directory