Rewrite of deploy script: separated the deploy in 2 pools