replaced hard coded feature path with logic to determine it