update to follow API chunking (doesn't work yet)