update api for globbing support