refactored routes into a safe folder