log reference handling