fixes crazy error messages!