fix for runcmd