parse query string as options