simplified code to use one set of credentials