store cmd name in bglist