added the load from file function to adapter