add performance logging