added node environmental variable logic