createCommand objects immediately when registering