polish scripts for sam_hit