fix api routing take 2