add metric and host api