remove cmdlog and add command begin/end to structer