fix retuncode typo
remove runcmd, not needed for this
do not redefine in function