refactored routes/resources