refine deploy shell scripts