implemented Exec method, tokenReturnStatus and tokenDoneProc