changed assembler to return a function that return copy of entity template messages, not references
add get_all_entity_ids and ut