updated to work with local filters AND isotope filters