Rebuilt connection handling and refined json message passing between objects