adding get_protocol() to service (thanks @jerith)