more updates to mild.c and mild.h