finally got dnd working