FIx some problem with focntion for REST and fix for network discovery
Clean