update to exception dcorator