loading admin urls only in debug mode and removing bad/ url