rework the way the deploy is done and the log tail