move functions out of an example module and into the nxblink package