0.4.2: tweaked logger to allow it to be imported separately