updating helpers.h to support the latest node versions