modifications on ntm_extension module