implemented api interface mock