modefied coregen