now supports dir alias