Modulize NCHAINS server