added new methods to load from files