fixes propagating the credentials