finishing up work in the json message passing