Add support for file channels and emitters
wip