basic client handler: start decoupling from pb protocol
basic implementation of output generator