adding multi-gear support to NodeFly init code, merging in multi-node version code