fix some preconfiguration in deploy script