some more progress on longest road and fixing bugs