move more code back into nxblink.em