add array support for api;