add getObjects method to session