get directory correct