refactor node namespaces and bootstrap