arrays support, API changed