adapt to CoreBundle 3.0