woraround for undefined 'options' in checkCredentials