Start of rewrite of messy nodeEngine