add smart init test version
add pileup_to_json