fixed random stuff for chaging dir...