tood modified
changed pram + made generic cmd executor