split API in two parts