adding some helper methods around changing directories