added dynamic debug support