removed unnecessary abstraction of api; moved mothods directly into host