using config for thread scheduling, data parsing