improve error messages when external dependencies are unavailable