compatibility to newer nodejs versions