improve line attribute parsing