improved word fetching algo and metadata support