added entity and entitytype interfaces