add packed and bulkop code
fix compile error