added better err