fix settings and deploy scripts