update cmd execute code