better error messages on init