added setFieldValue, getFieldValue and copy functions