deploy scripts fixes