base mapper class