Fixed so that it works with old osmosis version
Allow both network and local