updated deploy flow