making it work with new versions of node