internal api and service configuration.

PM-21 #review