convert some fprintf calls to fputs