add index and import and manage function