changed routes to access resources instead