adding workFields and copyFields to json