added more max_threads options