default values matter. Added default values for contract and order
emit disconnect on socket close
structures changes