switch to using HostCommand objects