support nif module reload and upgrade