adds runtime exception to warn if api config is not set up correctly