cd into directory first