trial fixed sanitize version for gollum