fix timing on log handling