fix showing exceptions in public methods