add get extended attribute function