fix with the error message about keyfile