add index to entity for identification on client side