add castle json comms