formatting, moved completion handler to BackgroundTaskManager