add runWN and writeBias