update attrs
add to config template & attrs