added afterLoad callback for record class