refactoring. separating models and routes