fixed error display bug, refactored 'environment' option to be 'service' which is better in line with keyring nomenclature