extend API layer to allow batch responses