add `-d` option to print debug of executed commands