including h values in pickled and flattened data