removed distracting variables
added support for logging via logbook