added logsources class begin of signle threaded input