call copy_attachment() after configure() and move attachment files