added option to get the saved network from device