fix #19; endpoint can know about all it's connected endpoint(in/out); refact code
update var name
add handlerwrapper for testable better