@dlam solution works, you can change RemoteMediator's behavior by overriding initialize inside, im sure this is what you want