The company closes on becoming free cash flow positive as it faces up to competition