takes out hardcoded regex from private methods. TODO: have a config method that takes in the filtering information