added #ifdefs for node loader