added more modes to the IR check, startingt he firefly code