sending more well defined error messages