some changes in minget.c