lots of code refactoring and adding next links to API