created registerControlChannel function