Credentials - make service name parameter optional

either file name or service name is required for writing the file