change comments
use handler and hook method to process client messages
encapsulate http messages