better scanRecord parsing when multiple records are present
restore code coverage