[+] clean up and extend socket io api