added multiple attempts to sendQuery