sane error handling
add (lazy) query string parsing