added better errors to development