sanitize profiles properly