Integrate api and lang into core