cleanups and persist some data variables when flipping stations