renamed method name, added renderException method