added mail scripts