most parts working, 5 and 6 still have issues with json and sockets