adding env indexing
spliting persmission testing