fixed directory recognition