move data-storing logic to store package