remoed error_reporting function, use widget inis instead