adaptions for contao 3.x.x