handling named ref tags now.