set window index if defined
set window path if defined
update sample.yml with index and path