added a better handling of merged roads