made model added socket io stuff