 			$select: ['id', 'supervisor_version']
 			$expand: belongs_to__application: $select: 'id'
 		.then (device) ->
-			ensureSupervisorCompatibility(device.supervisor_version, MIN_SUPERVISOR_APPS_API).then ->
-				appId = device.belongs_to__application[0].id
-				return request.send
-					method: 'POST'
-					url: "/supervisor/v1/apps/#{appId}"
-					baseUrl: apiUrl
-					body:
-						deviceId: device.id
-						appId: appId
-						method: 'GET'
-			.get('body')
-			.asCallback(callback)
+			ensureSupervisorCompatibility(device.supervisor_version, MIN_SUPERVISOR_APPS_API)
+			appId = device.belongs_to__application[0].id
+			return request.send
+				method: 'POST'
+				url: "/supervisor/v1/apps/#{appId}"
+				baseUrl: apiUrl
+				body:
+					deviceId: device.id
+					appId: appId
+					method: 'GET'
+		.get('body')
+		.asCallback(callback)
 
 	###*
 	# @summary Check if a device exists

			ensureSupervisorCompatibility(
				device.supervisor_version,
				MIN_SUPERVISOR_MC_API
			).then ->
				appId = device.belongs_to__application[0].id
				return request.send
					method: 'POST'
					url: "/supervisor/v2/applications/#{appId}/restart-service"
					baseUrl: apiUrl
					body:
						deviceId: device.id
						appId: appId
						data: {
							appId
							imageId
						}
					timeout: CONTAINER_ACTION_ENDPOINT_TIMEOUT
		.asCallback(callback)

	###*

			$select: ['id', 'supervisor_version']
			$expand: belongs_to__application: $select: 'id'
		.then (device) ->
			ensureSupervisorCompatibility(device.supervisor_version, MIN_SUPERVISOR_APPS_API)
			appId = device.belongs_to__application[0].id
			return request.send
				method: 'POST'
				url: "/supervisor/v1/apps/#{appId}/stop"
				baseUrl: apiUrl
				body:
					deviceId: device.id
					appId: appId
				timeout: CONTAINER_ACTION_ENDPOINT_TIMEOUT
		.get('body')
		.get('containerId')
		.asCallback(callback)
