removing stale endpoints, cleaning up views