minor fixes on loading and plotting data