add subscribe event and command