added check in executethis when finding targetfn and fixed parameter name in offlinegetwid