api routing fix