implements filter stats on server side