improved error messages & quit