added logging to get an overview of when and how long background tasks
are executed