allocate space for command struct