smart scripts packing