init impl for main-server, master-client

not working right now