sanitize connection