initialize channels or else things deadlock