initial data loading and plotting