cd to right directory first