a function wrapper around 'credentials'