add index main to package