fix to REST debug output