improve various error messages

fixes #126