support for dead ends with messages
small bug