cleaner way of sharing channel factory
clean up imports