trying to get the correct directory