[IMP] replace setattr with direct attribute setting