replace index with main

remove lightweight index with redirect to main, to have all logic in
index