load libraries needed for hexbin so we don't get warning, also generalized the data loading