handle errors a little better