design update and minor socket io stuff