cleaned up Apollo object, and made performance enhancement on Route class