Add "name" and "options" attributes to root and file reference