clean up file generation and sharing