debug mode in REST