updated better errors