revert env accessor to use [] ; fix some specs