add log and rool back