added multiple email support