added a fallback to the taskready function.