improve task logging