implement spawn command