preserve attributes v0.4.7