[server] use multiprocessing, + code clarification