better errors for development