added fixes for text output representation of records