support for infinite scroll
Also change how i published the metadata, it works better now but the code is a bit messy