added routine for loading vs. comping/saving