added generic get() and add() methods