pass cmd instead