rewrite check node_env