setting the context now everytime save_attachments get called