make deploy.sh a bit more flexible based on new schematic