changed rest api routes, added debug/badge