refactor threading and logging configurations, and add predefined threads configuration