Merge pull request #38 from apache/theta_api_change

compatibility with the current core code