getPathes method. Compatibility with console app.