more verbose error reporting (fixes #16)