caught some errors and added json doc as text