edited execCmd