fixing compatibility with node_module