added pre-sanitize to library