reworked use of lazy_records