got json working mostly