playing around with index action. putting api stuff in