improved prod script