working on log output