adapt code to modifications in GenericsLib events