removed resolve_dir method as unused