almost done with logging