upgrade path to handle setting path for each function