reverted ngr environment to working
refixed stuff