changed pathgen interface a bit