remove last usage of #glob and #glob itself