restructured node scripts