rebuild package structure