improve error message on startup