seperate generic and api host server