adding alternative ways of specifying how an entity can be marshalled