refactored pieShare package structure