resolved naming conflict with builtin dir()