enabled error reporting in ch.2