ensure node callback pattern