added logging of recent flips