switched package index to dict