stab at fixing attribute parser