fixed for AOT compilation

avoided name clashes, seems to AOT compile now