api: start working on arrays