also add back the logging function that I somehow clobbered