update an ifdef to support network-uri