sever-detail move to patterns_server's private js