setup file save to run event