added mail core to prototype