changed addEntry to return the added entry w/id