hopefully fix flashing; removed logging