improve error messages on startup