add runinputclient to facilitate inputclient running