update log, bug fix