added smarter AI and path overlay option