support NODE_ENV environment variable