raise on error in modules