package structure and dump function