finally refactored query parser :)
cancel sql timeout on error