moving index and config to root