fixed deploy script bugs