exposed internal API when acting as node module