add support for indexed arrays