improve logfilter