fixed module err handling to raise"