add host command function