recreate conn in task