fixed all remaining flip issues. closes #260. closes #213