adding better errors