adding the getPublicMemory method to the request object.