refactored for myth-services-api v1.0