added simple api interface