add debug feature