fix output format and next links, clean for share