(unfinished version)  get current path
cleanup