default value in constructor
make error reporting configurable