gettasks and getexporthistory functions