fixed api inheritance;