get path and set path