moved tree indexing to undertaker, simplified gulp code