fixes get script to exit properly on missing key