increased curl timeout, fixed api calls