changed main to index as is common  node style