[IMP] improved attachment loader