fixed mod_name_cmp() proto, added few more public functions