move a couple of functions from an example into a new module in the nxblink package