parse json correctly.  other stuff