reorganized routes directory structure
updated tests for new api