simplify attachment creation