load a object from a file