seprate route api and route core