Glue

add debug infrastructure