Temporary workaround edit to fliptxt funciton so export completes