modified the threading part
almost finished..excepte the next_page_url part
but now it can work actually