adapt to new luatex engine and future luatexbase