tiny refactoring.
refs #140
add sub protocol example.