added support for varying the faceting tolerance