change how we pass in credentials. add doc.