added automatically turning off autochdir