directory not working