Make the api docs not run in seperate threads