support for private api

fix bug when path is not yet set