clean up and fix loop in net func_ask-trustednets