small addition to default cred function