Add root and upstream templates