service keeps api as an ivar