distributed task with stats