script to extract modem links