[update] refine deploy code