entities and mapping v1