move index from hardcode to config file