added better errors gem.