adjust namespaces usage
fix evironment issue under nodejs