add some basic error-handling