use array instead of tuple, so that selection of single value works
convert to numpy when reading foi