added index file and fixed local-config bug