check the right directory