add MagicalRecord patch