added errors to tool

didn't add them for keys, I want to figure out how I handle errors there