update commands and add a few logs