upgrade cake file to latest node api