working base for socketio.