added json serialzation to the mix