fixing logic in resetenvironment function and also changed the executelevel being sent in by node1-local.html