made backwards compatible to contao 2.x