add log! for references