purge state and peers