added some error messages: