v0.1.8 improved error handling for invalid queries