json packet improvements