request and response translation