utils: replace beam with libchan