logging is fixed