error handling hf settings