added event query lowercasing