wip
wip
wip
wip
wip
wip
wip
wip
wip
wip
not tested but draft implementation of in/out channels