get the right directory