added some error messages