remove unuse block depth
write log when command not handled & add some comment