add update log and add a debug script