made SendMessage and ReceiveMessage take a parameters object instead of a list of parameters.