disable threads in not CLI mode