adding multi-gear support to NodeFly init code