get objects returned by cloud function