first draft of application-to-service protocol implementation