brute forcing error handling