add target path supported and testcase

Rebase in this class