add debug log
merged from master