make filtering callback work with protobufs