moved script import to index end