read & write object to local file