add sample for get path both.