Modify the way of api commands injection