fixed up the log filtering