rewrite parts; attachSchema as preferred way to set