instance not used with rest api and recording

Hello

it looks like specifying the instance name has no effect when starting to record using rest api. using this command will wait for a stream with name $streamName in instance definst instead of the one specified in the variable $instanceName. bug or im doing something wrong ?

$sf = new com\wowza\Recording('wcs');

$recordName= $streamName;
$instanceName= ''.$_SESSION['roomID'].'';
$recorderState= "Waiting for stream";
$defaultRecorder= true;
$segmentationType= "None";
$outputPath= "/home/wcsrecordings/".$recordingID;
$baseFile= $streamName.".flv";
$fileFormat= "FLV"; // or FLV
$fileVersionDelegateName= "com.wowza.wms.livestreamrecord.manager.StreamRecorderFileVersionDelegate";
$fileTemplate= "${BaseFileName}_${RecordingStartTime}_${SegmentNumber}";
$segmentDuration= "900000";
$segmentSize= "10485760";
$segmentSchedule= "";
$recordData= true;
$startOnKeyFrame= true;
$splitOnTcDiscontinuity= false;
$option= "Version existing file";
$moveFirstVideoFrameToZero= true;
$currentSize= 0;
$currentDuration= 0;
$recordingStartTime = "";

$response = $sf->create($recordName, $instanceName, $recorderState, $defaultRecorder,
					$segmentationType, $outputPath, $baseFile, $fileFormat, $fileVersionDelegateName, $fileTemplate,
					$segmentDuration, $segmentSize, $segmentSchedule, $recordData, $startOnKeyFrame, $splitOnTcDiscontinuity,
					$option, $moveFirstVideoFrameToZero, $currentSize, $currentDuration, $recordingStartTime);