adapted logging