setting working dir and created a run script