added performance logging