attempt to fix compatibility with newer versions of node