implement batch get