added calls to check if the network is public

 (used to only check ifnetwork was on your project)