automatically install packages and write to file on launch/quit