event pipeline and tests
query pipeline