changed debug.groovy do use an inner class