updating index approach and adding more tests for double imports