socket io update and small fixes