improve worker to avoid log filling