finally got a good solution to that unordered array problem. works on ELB, need to push to the other issue areas