better lang attribute handling
refined