add endpoint, add protocol logging

underscore has a ton of useful features, may as well use them consistently.