improvements in deploy script