fixes for background tasks