fix issue #10791 

fix issue #10791, unused param was there from a previous rewrite of the module
Cleanup execute_cmd calls
Merge pull request #10794 from topochan/patch-1

fix issue #10791