~~ use global offset for error reporting
~~ removed warnings as they are not reported anyway