hack for log