extracting credentials for convenience