improoved modem communication with change modes