append and prepend
new send function
more protocol compatibility
sort out socket activation issue