cleaned up the logToScreen adapter code