before run commands