added exception for a taskid