1.add environment support. 2.add array access to application