add singleton functionality, since it is required in contao 3