remove all global status to make unrealfmt.c reentrant