started on json generation