add builtin: dir method