logging

tweaked the logging functionality