sanitize config