cd to directory first