fix sockets
add codemirror