add connection class and event dispatcher
completed connection loop
completed handler to process reply message