connect to mosesserver. Need to spawn it