added mogenerator for core data support