using requireindex to export actions