removed superfluous logging and changed top-level logging to exception instead of debug