noted that the debug flag has no effect on the rest interface