added single-key array support