improve dist script