updated amp for different request and response rpc messages