updated to use new api route