fixed script cancellation in warning prompt, made encryption optional