added function calls to nis.hs