resolving directory mishmash