implemented log loading