adaptation of anthony's deployer script
hiding engage for now
merging with luc some more