fixed dirctory lookup