added socket io listeners back in