cutting out a lot of unneeded code form json library