add support for taking snapshot as int array