reduce timeout, add log autoflush