move api host into config