fixed delimited messaging. Reworked socket