Feature/676 service path context types

Implements issue #676