updated errors to be more helpful