changed fid to return tb file type 
	vkeyed = msort