It works as it is... it did not work when path = indexname. It was my first assumption and first try