add deploy script
refactor deploy script