my rewrite of the trbo-net perl package