changed the logging a bit