pass credentials to method