should this have some error checking, logging and exception throwing in case the credentials have not been set yet?  or will it be obvious later what happened?