works untill 27th oct--added public ip method and network ids