improve error handler
typo
ability to add an initializer