moved logic for handling ignores