fix data size to 2000 characters for portablity, and updated getfield with less distructive manipulations.