support older versions of Node too