[server] several fixes in previous attitiude