generic get entries method added