move queryEngine to its pakcage
refactor
refactor