add basic array support