replaced stracktrace-printing with logger messages. removed some unused imports.