added couple of error messages