some improvements to the mastninj bootleg emulation (nw)