add mail gem, log better