assign the correct directory.