deploy scripts fixed