feat: add dirname resolve argument