trying to get the load fuction working