updated thor deploy script