improved the error message in case of an instantiation exception. fixes #234