moved node code one level up