pass queryRegistry into the AQL functions
accidently committed local modifications. revert