added test if red device present and exit if true