added inherit to api check