fixed logger and exception errors