add demo debug interface for server