added checks for socket io, instead of having to install mongodb it just doesn't load the sockets