performance enhancements, bug fix
tests for datarecord extensions