added batch for task loggin