mail script changes