adding support for x_y values in new API