use curl to get namespaces