added changes to change dir