Set variables from deploys

Now supporting to set variables from a deploy
+some cleanup on the "exec" function