add a new errorPath parameter, fix outdated doc