added feature for background tasks