This reverts commit 94201f53.
add back the target_path argument, so that target_path and target_list is separate.