restarted server code, add srvrutil.h/c for misc server functions