remove fnmatch in rpc