update code getting Pathinfo