accept command name in decorator