buildAttributes with defaults