added CRMentities and XML serialisation