changing error message, fixing api caching bug