read pathname