quick hack to make filtering callback work with protobufs