handle current dir