injecting log_model