simplify expires() and attachment()