add api support for cros