ad-hoc fix for inputting regexp as targets (improve filtering!!!)