improve a delpoy script