added lua function to find network name