set __cmd__ to name
fix namespace