added new option to allow external filters