add some more logging, finer timing