better flip logic fixes Issue #73