add suport for MagicalRecords