started work on error handling

Signed-off-by: DarkSnake-Kobra <jbttoms@gmail.com>