transform adjust_cmd into a decorator