alterations to make socket io work