custom_attributes override object attributes if present. fix #17