change get function to load and add get function to constructor