change the way credentials are injected