handle permissions in deployment script