add socket io methods