add commands wrapped function.