add attributes to spec