add mime and socket.io as well as some modify