adding debug to all routes