extract attr from list (if necessary)