add option for changing directory before executing