error checking

Signed-off-by: Christopher Ross <cross@thisismyurl.com>