refactor unique path

Signed-off-by: WanBin <ouyangwanbin@gmail.com>