debugging dp_handler()