convenience parsing for attrs