added dumb terminal check