add get dirname