exceptions fixed, json creation on new table now