progress bar and path length added