add attrs function to ref & meta result