added prime.filter and minor configurable change