added analytics and started playing around with mailer