added nmaster.c