move models into routes